package com.mind.db.async.model;

import com.mind.db.IEntity;

/**
 * 更新的实体类
 * 
 * @author yangshaobo 2012-5-30上午11:35:41
 */
public class AsyncBean {
	/** 类型 */
	private OperationType operationType;
	/** 实体 */
	private IEntity entity;
	public OperationType getOperationType() {
		return operationType;
	}

	public IEntity getEntity() {
		return entity;
	}
	public AsyncBean(OperationType operationType, IEntity entity) {
		this.operationType = operationType;
		this.entity=entity;
	}
	/**
	 * 类型
	 * 
	 * @author yangshaobo 2012-5-30上午11:36:24
	 */
	public enum OperationType {
		/** 创建 */
		CREATE, UPDATE, DELETE,
		/** 通过id删除实体 */
		DELETE_BY_ID;
	}

}
